package com.gitee.huanminabc.fastboot.orm.methods.delete;

import com.gitee.huanminabc.jlambda_sql.jdbc.JdbcCommand;
import com.gitee.huanminabc.fastboot.orm.methods.BaseMethod;

import java.lang.reflect.Method;
import java.util.Collection;

/**
 * 简要描述
 *
 * @Author: huanmin
 * @Date: 2025/4/6 10:20
 * @Version: 1.0
 * @Description: 文件作用详细描述....
 */
public class DeleteByIdsMethod implements BaseMethod {
    @Override
    public String getSignature() {
        return "deleteByIds";
    }

    @Override
    public Object execute(Method method, Object[] args) {
        Class entityClass = (Class)args[0];
        Collection ids= (Collection) args[1];
        return JdbcCommand.deleteByIds(entityClass,ids);
    }
}
